package com.isunland.managesystem.ui;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import com.isunland.managesystem.R;
import com.isunland.managesystem.base.BasePagerActivity;
import com.isunland.managesystem.entity.rBuyappMain;

/**
 * 对象功能:  采购申请pager
 * 开发公司: 北京信普达系统工程有限公司
 * 开发人员: HuXiaoDan
 * 创建时间: 2017/6/12 18:35
 */
public class BuyApplyPagerActivity extends BasePagerActivity {
  private rBuyappMain content;

  @Override protected void onCreate(Bundle arg0) {
    content = (rBuyappMain) getIntent().getSerializableExtra(BuyApplyFragment.EXTRA_CONTENT);
    super.onCreate(arg0);
  }

  @Override protected Fragment createFragmentOne() {
    return BuyApplyFragment.newInstance(content);
  }

  @Override protected Fragment createFragmentTwo() {
    return BuyDetailListFragment.newInstance(content);
  }

  @Override protected int[] createTitle() {
    return new int[] { R.string.buyApply, R.string.buyDetailed };
  }
}
